package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.common.Result;
import com.TeacherInfoServer.pojo.DTO.AddTalentTitleDTO;
import com.TeacherInfoServer.pojo.DTO.SearchDTO.TalentTitleSearchDTO;
import com.TeacherInfoServer.pojo.DTO.UpdateTalentTitleDTO;
import com.TeacherInfoServer.pojo.entity.TalentTitle;
import com.TeacherInfoServer.pojo.vo.TalentTitleListVo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.util.Map;

public interface TalentTitleService extends IService<TalentTitle> {
    Result<Map<String, Integer>> addOne(AddTalentTitleDTO addTalentTitleDTO);
    Result<TalentTitleListVo> getList(Long pageNumber, Long pageSize);

    Map<String,Object> searchTalentTitleList(TalentTitleSearchDTO talentTitleSearchDTO);

    Result<TalentTitleListVo> getOneList(Long pageNumber, Long pageSize, String teacherId);
    void export(HttpServletResponse response, String fileName) throws IOException;
    Result<Map<String, Integer>> deleteBatch(Integer[] ids);
    Result<Map<String, Integer>> updateOne(UpdateTalentTitleDTO updateTalentTitleDTO);
}
